// 下拉选项远程搜索加箭头：el-select
export const select_arrow = {
    bind(el, binding, vnode) {
        const iconDom = el.querySelector('.el-select__caret')
        iconDom.classList.add('el-icon-arrow-up')
        vnode.componentInstance.$on('visible-change', open => iconDom.classList[open ? 'add' : 'remove']('is-reverse'))
    }
}

// 下拉选项加hover提示：el-select
export const select_hover = {
    bind(el, binding, vnode) {
        const dom = el.querySelector('.el-input')
        vnode.componentInstance.$watch('selectedLabel', val => dom.title = val, { immediate: true })
    }
}